package org.apache.ibatis.builder;

import org.apache.ibatis.parsing.XPathParser;
import org.apache.ibatis.session.Configuration;

import java.io.InputStream;
import java.util.Properties;

/**
 * 解析xml配置文件，全局配置Configuration由父类BaseConfigBuilder持有
 * 封装了默认解析器XPathParser
 * @author xieqiaofu
 * Create time: 2019/10/10
 **/
public class XMLConfigBuilder extends BaseBuilder {

    private final XPathParser parser;

    public XMLConfigBuilder(InputStream inputStream, String environment, Properties props) {
        this(new XPathParser(), environment, props);
    }

    private XMLConfigBuilder(XPathParser parser, String environment, Properties props) {
        super(new Configuration());
        this.parser = parser;
    }

    public InputStream parse() {
        return null;
    }
}
